import { setSession,getSession } from "../utils/index.js";
export default {
    namespaced: true,

    state: {
        
        address:JSON.parse(sessionStorage.getItem("address"))||[],
        isTransformData:false
      },
      getters: {
      },
      mutations: {
       
        setAddress(state,address){
          state.address=address
          setSession("address", address);
          
        },
        // 确认是否传输地址数据到修改地址模块
        setransformData(state,paylzod){
         if (paylzod==1) {
          state.isTransformData=true
         }else{
          state.isTransformData=false
         }
         
          
        }
      },
      actions: {
      },
}